/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('goods', {
    goods_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true
    },
    goods_name: {
      type: DataTypes.STRING(255),
      allowNull: false
    },
    goods_price: {
      type: DataTypes.DECIMAL,
      allowNull: false
    }
  }, {
    tableName: 'goods'
  });
};
